package com.financial.service.heemoney.utils;

import com.financial.service.heemoney.dto.inparameter.HeemoneyProviderQueryInParamDTO;
import com.financial.service.heemoney.service.FinancialProQueryHeemoneylogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @api {post}
 * @apiExample author zhaopengjun
 * tar 汇收银定时任务处理
 * date   2020/2/10 16:11
 * @apiGroup
 * @apiVersion 1.0.0
 * @apiHeader
 * @apiParam
 * @apiSuccess
 */
@Component
public class TimingUtils {

    private static Logger log = LoggerFactory.getLogger(TimingUtils.class);
    @Autowired
    private FinancialProQueryHeemoneylogService financialProQueryHeemoneylogService;
    @Scheduled(cron = "0 0 0/1 * * ?")
    public void providerQuery(@RequestBody HeemoneyProviderQueryInParamDTO heemoneyProviderQueryInParamDTO){

        log.info(DateFormatHelper.getNowTimeStr()+"=========查询商户进件状态==========");
        financialProQueryHeemoneylogService.providerQuery(heemoneyProviderQueryInParamDTO);

    }
}
